(function() {
    'use strict';

    angular
        .module('weiyouquApp')
        .controller('ShareInfoDetailController', ShareInfoDetailController);

    ShareInfoDetailController.$inject = ['$scope', '$rootScope', '$stateParams', 'entity', 'ShareInfo'];

    function ShareInfoDetailController($scope, $rootScope, $stateParams, entity, ShareInfo) {
        var vm = this;

        vm.shareInfo = entity;

        var unsubscribe = $rootScope.$on('weiyouquApp:shareInfoUpdate', function(event, result) {
            vm.shareInfo = result;
        });
        $scope.$on('$destroy', unsubscribe);
    }
})();
